package com.moyq5.permit.center.bean.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 商家信息
 * @author Moyq5
 * @date 2018年4月13日
 */
@Entity
@Table(name = "uc_merch")
@DynamicUpdate
public class Merch implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 商家ID
	 */
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "native")@GenericGenerator(name = "native", strategy = "native")
    @Column(name = "merch_id")
	private Long merchId;
	/**
	 * 商户编号
	 */
	@Column(name = "merch_no", length = 20, nullable = false)
	private String merchNo;
	/**
	 * 商家名称
	 */
    @Column(name = "name", length = 100, nullable = false)
	private String name;
    /**
	 * 添加（注册）时间
	 */
	@Column(name = "add_time", nullable = false, columnDefinition="datetime")
	private Date addTime;
	public Long getMerchId() {
		return merchId;
	}
	public void setMerchId(Long merchId) {
		this.merchId = merchId;
	}
	public String getMerchNo() {
		return merchNo;
	}
	public void setMerchNo(String merchNo) {
		this.merchNo = merchNo;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	@Override
	public String toString() {
		return "Merch [merchId=" + merchId + ", merchNo=" + merchNo + ", name=" + name + ", addTime=" + addTime + "]";
	}
	
}
